
  buddystatus : 0,   //0 = offline      //italics
               //1 = online       //plain text
                //2 = new message  //bold




'SendFLAPON
   send literal string "FLAPON\r\n\r\n"
   get FLAP FLAPON from server (10 bytes)
      HEADER
        * (asterisk)
        1 (frame type)
        2 byte sequence number (store)
        2 byte data length (4)
      DATA
        4 byte flap version number

'SendFLAPSignOn
   send flap signon message
     HEADER
       *
       1
       2 byte sequence number (start at 1)
       2 byte data length
     DATA
       4 byte flap version (1)
       2 byte TLV tag (1?)
       2 byte username length 
       N bytes username, no spaces or caps, not null terminated

'SendTocSignOn
   send toc_signon
     HEADER
       *
       2
       2 byte sequence num (2)
       2 byte data len including null termination
     DATA
       "toc_signon login.oscar.aol.com 5190 <User Name> <Roasted Password> english newtchat1<null terminator>"

   get server SIGNON
     HEADER
       *
       2
       2 byte num
       2 byte len
     DATA
       "SIGN_ON:TOC1.0" 

'SendInitDone
   send toc_init_done
     HEADER
       *
       2
       2 byte num
       2 byte len
     DATA
       "toc_init_done<null>"

'Chatting
    receive header
    use len to get rest of data
    messages:
      IM_IN:<Source User>:<Auto Response T/F?>:<Message>
      UPDATE_BUDDY:<Buddy User>:<Online? T/F>:<Evil Amount>:<Signon Time>:<IdleTime>:<UC>
      ERROR:<Error Code>:Var args

    send messages
      toc_send_im <Destination User> <Message> [auto]
      toc_add_buddy <Buddy User 1> [<Buddy User2> [<Buddy User 3> [...]]]
      toc_remove_buddy <Buddy User 1> [<Buddy User2> [<Buddy User 3> [...]]]




